﻿@model Domain.Entity.NewsArticle

@{
    ViewBag.Title = "Create News";
}

<h2 class="title @Html.GetColor(Request.Cookies["color"])">Create News</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<div id="titlelessItem">
<div class="item">
    @using (Html.BeginForm("Create","News",FormMethod.Post)) {
        @Html.ValidationSummary(true)
        <fieldset>
            @Html.EditorForModel()

            <p>
                <input type="submit" value="Create" class="actionButtons @Html.GetColor(Request.Cookies["color"])" />
            </p>
        </fieldset> 
    }

    <div>
        @Html.ActionLink("Back to List", "Index")
    </div>
</div>
</div>
